using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class ICChangeMap : EntityTypeConfiguration<ICChange>
    {
        public ICChangeMap()
        {
            // Primary Key
            this.HasKey(t => t.FID);

            // Properties
            this.Property(t => t.FID)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.FBillNo)
                .HasMaxLength(30);

            this.Property(t => t.FNote)
                .HasMaxLength(200);

            // Table & Column Mappings
            this.ToTable("ICChange");
            this.Property(t => t.FID).HasColumnName("FID");
            this.Property(t => t.FClassTypeID).HasColumnName("FClassTypeID");
            this.Property(t => t.FTranType).HasColumnName("FTranType");
            this.Property(t => t.FBillNo).HasColumnName("FBillNo");
            this.Property(t => t.FDate).HasColumnName("FDate");
            this.Property(t => t.FFee).HasColumnName("FFee");
            this.Property(t => t.FCurrencyID).HasColumnName("FCurrencyID");
            this.Property(t => t.FExchangeRate).HasColumnName("FExchangeRate");
            this.Property(t => t.FNote).HasColumnName("FNote");
            this.Property(t => t.FCheck).HasColumnName("FCheck");
            this.Property(t => t.FBillerID).HasColumnName("FBillerID");
            this.Property(t => t.FEmpID).HasColumnName("FEmpID");
            this.Property(t => t.FStatus).HasColumnName("FStatus");
            this.Property(t => t.FDeptID).HasColumnName("FDeptID");
            this.Property(t => t.FCheckDate).HasColumnName("FCheckDate");
            this.Property(t => t.FCheckerID).HasColumnName("FCheckerID");
        }
    }
}
